package com.system.test.service;


import com.system.test.bean.Appointment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

/**
 * @interfaceName: AppointmentService
 * @description:预约单ServiceFeign
 * @author: Li Chuanwei
 * @date: 2023/11/30 15:52
 * @Company: Copyright [日期] by [作者或个人]
 **/
@FeignClient(value = "appointment-service", path = "/appointment")
public interface AppointmentService {
    @PostMapping("/save")
    boolean saveAppointment(Appointment appointment);

    @DeleteMapping("/del/{id}")
    boolean removeAppointmentById(int id);

    @PutMapping("/update")
    boolean modifyAppointment(Appointment appointment);

    @GetMapping("/get/{id}")
    Appointment getAppointmentById(int id);

    @GetMapping("/get/list")
    List<Appointment> listAllAppointments();
}
